/*
 * @Author: 1453937336@qq.com 1453937336@qq.com
 * @Date: 2024-05-20 19:01:28
 * @LastEditors: 1453937336@qq.com 1453937336@qq.com
 * @LastEditTime: 2024-07-17 11:58:18
 * @FilePath: \itforce-hris\src\router\DynamicRoutes.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
export class DynamicRoutesListTwo {
  constructor() { }
  list() {
    return [
      {
        path: "",
        name: "container",
        component: () => import("@/pages/container/container.vue"),
        meta: {
          name: "首页",
        },
        children: [
          {
            path: "home",
            name: "home",
            hidden: false,
            component: () => import("@/pages/home/home.vue"),
            meta: {
              name: "首页",
              icon: "house",
              isSub: false,
              isMenu: true,
              hide: true,
            },
          },
          {
            path: "setting",
            name: "setting",
            hidden: false,
            component: () => import("@/pages/setting/index.vue"),
            meta: {
              name: "设置",
              icon: "help",
              isSub: false,
              isMenu: true,
            },
            children: [
              {
                path: "userList",
                name: "userList",
                component: () => import("@/pages/user/user-list.vue"),
                meta: {
                  name: "用户列表",
                  icon: "fa-users left-icon",
                  isSub: true,
                },
              },
              {
                path: "roles",
                name: "roles",
                component: () => import("@/pages/setting/roles-list/index.vue"),
                meta: {
                  name: "角色列表",
                  icon: "far fa-user-tag",
                  isSub: true,
                },
              },
              {
                path: "menu-lists",
                name: "menu-lists",
                component: () => import("@/pages/setting/menu-list/index.vue"),
                meta: {
                  name: "菜单列表",
                  icon: "fa-users left-icon",
                  isSub: true,
                },
              }
            ],
          },
          {
            path: "*",
            component: () => import("@/pages/error/404/index.vue"),
            meta: {
              name: "404",
            },
          },
          {
            path: "401",
            component: () => import("@/pages/error/401/index.vue"),
            meta: {
              name: "401",
            },
          },
        ],
      },
    ];
  }
}